package com.zhengxiang.onlinexamination.dao;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhengxiang.onlinexamination.entity.Qu;
import com.zhengxiang.onlinexamination.entity.vo.QuVo;
import org.apache.ibatis.annotations.Param;
import java.util.List;

/**
 * (ZQu)表数据库访问层
 *
 * @author 
 * @since 2023-03-08 14:06:12
 */
public interface QuMapper extends BaseMapper<Qu> {


    Page<Qu> queryAll(Page<Qu> quPage, @Param(Constants.WRAPPER)QueryWrapper<Qu> q);

    /**
     * 随机获取题目
     * @return
     */
    List<Integer> randQu(Integer quBankId,Integer quType,Integer quNum);

    /**
     * 题目详情
     * @param quId
     * @return
     */
    QuVo queryInfo(Integer quId);
}

